$(document).ready(function(){
        $.ajax({
            url: 'clazz/getAllJSon',
            type: 'post',
            data: {},
            dataType: 'json',
            success: function (dto) {
                //alert(dto.msg);
                $(dto.tList).each(function (i,course) {
                    var option;
                    if(course.cno==$('.newCno').val()) {
                        option = '<option value="' + course.cno + '" selected="selected">' + course.cname + '</option>'
                    }else{
                        option = '<option value="' + course.cno + '">' + course.cname + '</option>'
                    }
                    $('.clazzs > select').append(option);
                })

            }
        });

});